
set(PLATFORM platform_open)

file(GLOB_RECURSE SOURCES "*.c")
add_library(${PLATFORM} SHARED ${SOURCES})
target_include_directories(${PLATFORM}
    PUBLIC ${LUACLIB_SRC_DIR}
    PUBLIC ${GLIB_INCLUDE_DIRS}
)
target_link_libraries(${PLATFORM}
    PUBLIC ${GLIB_LIBRARIES}
    PUBLIC libmc4lua::libcutils
    PUBLIC liblogger::liblogger
    PUBLIC json::json
)
install(TARGETS ${PLATFORM} DESTINATION usr/lib64)
